/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Ground object for the game, contains one static long ground item
 * and sprites related to it
 */

#ifndef GAMEGROUND_H
#define GAMEGROUND_H

#include "../GamePhysicObject.h"
#include <vector>

class GameGround : public GamePhysicObject {
public:
	// default constructor
	GameGround( b2World *world, cocos2d::CCLayer *layer, float groundWidth = 100.0f );
	// default destructor
	virtual ~GameGround();

	// default update function
	virtual void update( cocos2d::ccTime dt );

	// get the main type of the object
	virtual PhysicObjectItems getObjectType();

protected:
	// layer used
	cocos2d::CCLayer *mLayer;
	// sprites contained
	struct GroundSpriteCombo {
		cocos2d::CCSprite *upperGroundSprite;
		cocos2d::CCSprite *lowerGroundSprite;
	};
	std::vector< GroundSpriteCombo > mGroundSprites;
};

#endif